<?php
$current_date	= date("Y-m-d", time());
?>
<script type="text/javascript">
$(document).ready(function(){	
	// functions
	<?php require('library/js/validator/functions.js');?>
	
	// pengiriman
	<?php require('library/js/form/input.bap.js');?>
	
	// VALIDATOR	
	// pengiriman dinamis	
	<?php require('library/js/validator/form.input.bap.js');?>	
	
	// validation config
	<?php require('library/js/validator/config.bap.js');?>	
	
	$('input#tgl_bap').datePicker();
});
</script>
<textarea style="display:none" id="template_bap">
	<li><span>
			<label>{0}</label>
			<input type="text" id="no_kotak-{0}" name="no_kotak-{0}" class="nomor_kotak"/>
			<input type="text" id="no_plastik-{0}" name="no_plastik-{0}" class="nomor_plastik"/>
			<input type="text" id="jml_kecambah_perkotak-{0}" name="jml_kecambah_perkotak-{0}" class="jumlah_kecambah_perkotak"/>
			<input type="text" id="kondisi-{0}" name="kondisi-{0}" class="kondisi"/>
			<input type="button" class="hapus_bap button"  name="hapus_bap" value="Hapus"/>
		</span>
	</li> 
</textarea>
<div class="title">Berita Acara Penerimaan</div>
<form name="frm_<?=$subbagian;?>" id="frm_<?=$subbagian;?>" method="post" action="index.php?bagian=<?=$bagian;?>&subbagian=<?=$subbagian;?>&action=confirm">
    <ul>
		<li class="header"><span>Administrasi</span></li>
		<li><span>
            <label>Tanggal BAP:</label>
            <input type="text" id="tgl_bap" name="tgl_bap" value="<?=$current_date;?>" readonly="readonly" class="disabled"/>
        </span></li>
		<li><span>
            <label>Nomor DO:</label>
            <input type="text" id="no_do" name="no_do" value=""/>
        </span></li>		
		<li><span>
            <label>Pemeriksa:</label>
            <input type="text" id="pemeriksa" name="pemeriksa" value=""/>
        </span></li>
		<li><span>
            <label>Catatan:</label>
            <textarea id="catatan" rows="4" cols="65" name="catatan"></textarea>
        </span></li>
		
	</ul>
	<ul>
		<li class="header"><span>Item</span></li>
		<li class="desc">
			<span class="no_kotak">No Kotak</span>
			<span class="no_plastik">No Plastik</span>
			<span class="jml_kecambah_perkotak">Jml Kecambah perkotak</span>
			<span class="kondisi">Kondisi</span>
		</li>
		<li class="button">
	      <input type="button" name="tambah_bap" id="tambah_bap" value="Tambah Baris"/>
	    </li>		
	</ul>
	<ul>
		<li class="header"><span>Simpan</span></li>
		<li class="button"><span>
			<input type="submit" name="submit" id="submit" value="Simpan Data" class="simpan"/>
		</span></li>
	</ul>
</form>